﻿@page "{id:int}"
@model EditModel
@{
    ViewData["Title"] = "修改照片信息";
}

<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card">
                <div class="card-header">
                    <h2>修改照片信息</h2>
                </div>
                <div class="card-body">
                    <form method="post">
                        <input type="hidden" asp-for="Edit.Id" />
                        <div class="mb-3">
                            <label asp-for="Edit.Description" class="form-label"></label>
                            <textarea class="form-control" asp-for="Edit.Description" rows="3"></textarea>
                        </div>
                        <div class="mb-3">
                            <label asp-for="Edit.Category" class="form-label"></label>
                            <select class="form-control" asp-for="Edit.Category" asp-items="Model.Edit.CategoryOptions" required>
                                <option value="">请选择分类</option>
                            </select>
                        </div>
                        <div class="d-flex justify-content-between">
                            <a asp-page="Index" class="btn btn-outline-secondary">返回列表</a>
                            <button type="submit" class="btn btn-primary">保存修改</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>